﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="~/Manager/Main.Master" CodeBehind="Payroll.aspx.cs" Inherits="Agile_E.Payroll" %>

<asp:Content id="Payroll" ContentPlaceHolderID="main1" runat="server" >
    <h1>Payroll</h1>
    <table style="text-align:left">
    <tr>
    <td><b>ID: </b> </td><td><asp:Label id="lblid" runat="server"></asp:Label> </td>
    </tr>
    <tr><td><b>Pay Rate: </b> </td><td><asp:Label ID="lblpayrate" runat="server"></asp:Label> </td></tr>
    <tr><td style="padding-right:15px"><b>Commission Rate: </b> </td><td><asp:Label id="lblcom" runat="server"></asp:Label> </td></tr>
    </table>
    <br /><br />
    <asp:DropDownList ID="DropDownList1" runat="server" 
        onselectedindexchanged="DropDownList1_SelectedIndexChanged">
        <asp:ListItem>Active</asp:ListItem>
        <asp:ListItem>Closed</asp:ListItem>
    </asp:DropDownList>
    <br />
    Manager only content below:<br />
    Hours Needing Approval:
    <asp:GridView ID="GridView1" runat="server" DataSourceID="srcPayRoll" 
        AutoGenerateColumns="False" BackColor="White" BorderColor="#999999" 
        BorderStyle="None" BorderWidth="1px" CellPadding="4" GridLines="Vertical" >
        <RowStyle BackColor="#EEEEEE" ForeColor="Black" />
        <Columns>
                <asp:BoundField HeaderText="Date" DataField="Date" />
                <asp:BoundField HeaderText="Hours" DataField="Hours" />
                <asp:HyperLinkField DataNavigateUrlFields="Vin" DataNavigateUrlFormatString="PayPeriodView.aspx?vin={0}"
                         Text="Select" NavigateUrl="~/Manager/PayPeriodView.aspx" />
        </Columns>
        <FooterStyle BackColor="#CCCCCC" ForeColor="Black" />
        <PagerStyle BackColor="#999999" ForeColor="Black" HorizontalAlign="Center" />
        <SelectedRowStyle BackColor="#008A8C" Font-Bold="True" ForeColor="White" />
        <HeaderStyle BackColor="#000084" Font-Bold="True" ForeColor="White" />
        <AlternatingRowStyle BackColor="#DCDCDC" />
    </asp:GridView>
    <asp:SqlDataSource ID="srcPayRoll" runat="server" 
        ConnectionString="<%$ ConnectionStrings:TerraNetConnectionString %>" 
        
        ProviderName="<%$ ConnectionStrings:TerraNetConnectionString.ProviderName %>"></asp:SqlDataSource>
</asp:Content>